package com.jfs.qy.service;

import org.springframework.http.ResponseEntity;

import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;

/**
 * @Description nvr 登录接口
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/11/4
 */
public interface LoginService {
    /**
     * 不带登录账号 默认使用配置文件
     * @return
     */
    ResponseEntity<String> login() throws URISyntaxException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException;

    /**
     * 指定账号密码登录
     * @param acount 登录账号
     * @param password 密码
     * @return
     */
    ResponseEntity<String> login(String acount,String password) throws URISyntaxException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException;
}
